import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class F_1_31 {
    public static void main(String[] args) {
        int mon,num;
        Scanner sc = new Scanner(System.in);
        mon = sc.nextInt();
        num = sc.nextInt();
        List<Module> list = new ArrayList<>();
        for (int i = 0; i < num; i++) {

            Module module = new Module();

            module.money = sc.nextInt();
            module.value = sc.nextInt();
            module.statue = sc.nextInt();
            list.add(module);
        }


    }
    static class Module{
        int money;
        int value;
        int statue;
    }
}
